Skip to main content

Chain Config

Queries information for the specified Cosmos chain.

query ChainConfig($chainUid: String, $chainId: String) {
chains {
chain_config(chain_uid: $chainUid, chain_id: $chainId) {
chain_id
chain_uid
display_name
explorer_url
factory_address
token_factory_address
logo
type
}
}
}

Example

curl --request POST \
--header 'content-type: application/json' \
--url 'https://testnet.api.euclidprotocol.com/graphql' \
--data '{
"query": "query ChainConfig($chainUid: String, $chainId: String) {\n chains {\n chain_config(chain_uid: $chainUid, chain_id: $chainId) {\n chain_id\n chain_uid\n display_name\n explorer_url\n factory_address\n token_factory_address\n logo\n type\n }\n }\n}",
"variables": {
"chainUid": "osmosis",
"chainId": "osmo-test-5"
}
}'

Open in Playground

Arguments

NameTypeDescription
chainIdStringThe ID of the chain. If not provided, chainUid must be specified.
chainUidStringThe unique identifier (UID) of the chain. If not provided, chainId is used.

Return Fields

FieldTypeDescription
chain_idStringThe chain ID used in the protocol.
chain_uidStringThe unique identifier (UID) of the chain.
display_nameStringA user-friendly name for the chain.
explorer_urlStringA URL to the block explorer for this chain.
factory_addressStringThe contract address of the main factory on that chain.
token_factory_addressStringThe contract address for the token factory on this chain.
logoStringThe logo URL or path used in the UI.
typeStringThe ecosystem the chain belongs to such as "EVM" or "Cosmwasm".